
<%@ page import="com.carmanagement.User" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'user.label', default: 'User')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<nav>
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link controller="vehicle" action="index" class="main"><g:message code="default.vehicle.label" default="main"/></g:link></li>
			</ul>
		</nav>
		index admin
		<table>
			<thead>
				<tr>
					<g:sortableColumn property="username" title="${message(code: 'user.username.label', default: 'User name')}" />
					<th> ${message(code: 'fullTank.accountExpired.label', default: 'Account expired')} </th>
					<th> ${message(code: 'fullTank.accountLocked.label', default: 'Account locked')} </th>
					<th> ${message(code: 'fullTank.passwordExpired.label', default: 'Password expired')} </th>
				</tr>
			</thead>
			<tbody>
				<g:each in="${userInstanceList}" status="i" var="userInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">					
						<td><g:link action="show" id="${userInstance.id}">${fieldValue(bean: userInstance, field: "username")}</g:link></td>
						<td>${fieldValue(bean: userInstance, field: "accountExpired")}</td>
    					<td>${fieldValue(bean: userInstance, field: "accountLocked")}</td>
   						<td>${fieldValue(bean: userInstance, field: "passwordExpired")}</td>
					</tr>
				</g:each>
			</tbody>
		
		</table>
	</body>
</html>
